package com.ics.atable.chat.memory;

import com.alibaba.cloud.ai.memory.redis.BaseRedisChatMemoryRepository;
import org.springframework.ai.chat.messages.Message;

import java.util.List;

/**
 * 短期：保留最近 N 条完整上下文（Redis list）
 * 长期：把历史 embedding 存 Redis VectorStore，用于检索补全
 * 预处理：结合历史对话生成“完整语义 query”再送进大模型
 *
 * @author haohongbin
 */
public class HybridMemory extends BaseRedisChatMemoryRepository {

    @Override
    public void close() throws Exception {

    }

    @Override
    public List<String> findConversationIds() {
        return List.of();
    }

    @Override
    public List<Message> findByConversationId(String conversationId) {
        return List.of();
    }

    @Override
    public void saveAll(String conversationId, List<Message> messages) {

    }

    @Override
    public void deleteByConversationId(String conversationId) {

    }
}
